package com.loyal.loyalerp.basedata.person_predept.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.loyal.loyalerp.basedata.person_predept.model.GyPersonPredept;
import com.loyal.loyalerp.basedata.person_predept.model.GyPersonPredeptExample;

@Mapper
public interface GyPersonPredeptMapper {
	
	//根据personid查询
	@Select("select * from gy_person_predept where personid=#{personId}")
	List<GyPersonPredept> selectByPersonId(Integer personId);
	
    int countByExample(GyPersonPredeptExample example);

    int deleteByExample(GyPersonPredeptExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(GyPersonPredept record);

    int insertSelective(GyPersonPredept record);

    List<GyPersonPredept> selectByExample(GyPersonPredeptExample example);

    GyPersonPredept selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") GyPersonPredept record, @Param("example") GyPersonPredeptExample example);

    int updateByExample(@Param("record") GyPersonPredept record, @Param("example") GyPersonPredeptExample example);

    int updateByPrimaryKeySelective(GyPersonPredept record);

    int updateByPrimaryKey(GyPersonPredept record);
}